/*
 * Created on Jan 10, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.recruiter.user;

import org.vectrics.common.db.RecordObject;
import org.vectrics.recruiter.job.JobFunction;

/**
 * @author mmoore
 */
public class JobAgentFunction implements RecordObject {
	private Long id = null;
	private String agentId = null;
	//private String functionCode = null;
	private JobFunction function = null;
	private JobAgent agent = null;
	
	
	/**
	 * 
	 */
	public JobAgentFunction() {
		super();
	}

	
	public boolean equals(Object obj) {
		JobAgentFunction other = (JobAgentFunction)obj;
		boolean result = (this.getId().equals(other.getId()));
		return(result);
	}
	
	public int hasCode() {
		return(id.hashCode());
	}
	
	/**
	 * @return
	 */
	public String getAgentId() {
		return agentId;
	}

	/**
	 * @param agentId
	 */
	public void setAgentId(String agentId) {
		this.agentId = agentId;
	}


	
	
	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}


	/**
	 * @param id The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}


	/**
	 * @return Returns the agent.
	 */
	public JobAgent getAgent() {
		return agent;
	}
	/**
	 * @param agent The agent to set.
	 */
	public void setAgent(JobAgent agent) {
		this.agent = agent;
	}
	
	/**
	 * @return Returns the function.
	 */
	public JobFunction getJobFunction() {
		return function;
	}
	
	/**
	 * @param function The function to set.
	 */
	public void setJobFunction(JobFunction function) {
		this.function = function;
	}
}
